//
//  Stackutil.h
//  V3d_Cocoa
//
//  Created by yang liang on 11-3-23.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import	"V3d_basicdatatype.h"

char * getSurfix(char *filename);

int loadTif2Stack(const char * filename, unsigned char **  img, V3DLONG ** sz, int * datatype);
//int loadTif2Stack(char * filename, unsigned char *  img, V3DLONG *  sz, int  datatype, int chan_id_to_load); //overload for convenience to read only 1 channel
int saveStack2Tif(const char * filename, const unsigned char * img, const V3DLONG * sz, int datatype);
